
package com.ctrip.corp.obt.shard.exception;

import com.ctrip.corp.obt.generic.exception.CommonException;

/**
 * @author marco.zheng
 * @version 1.0
 * @date 2022/01/14
 * @desc 数据分片异常类
 * @see
 * @since 1.0
 */
public class ShardException extends CommonException {

    private static final long serialVersionUID = 1L;

    public ShardException(String message) {
        super(message);
    }

    //用详细信息指定一个异常
    public ShardException(String formatMessage, Object...args){
        super(String.format(formatMessage, args));
    }

    public ShardException(Throwable throwable) {
        super(throwable);
    }

    public ShardException(String message, Throwable throwable) {
        super(message, throwable);
    }
}
